package com.jiyun.controller;


import com.jiyun.om.entity.Carrier;
import com.jiyun.service.ICarrierService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 承运商表 前端控制器
 * </p>
 *
 * @author zhx
 * @since 2025-02-13
 */
@RestController
@RequestMapping("/carrier")
@Tag(name = "承运商管理")
public class CarrierController {
@Autowired
    private ICarrierService carrierService;
@Operation(summary = "承运商下拉框")
    @RequestMapping("/findCarrier")
    public List<Carrier> findCarrier(){
        return carrierService.list();
    }
}
